﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Micrhard.FMCG.Server.Models.SubKAProtalInfoModel>" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title>巡店信息</title>
    <script src="<%=Url.Content("~/Scripts/jquery-1.9.1.min.js")%>"></script>
    <script src="<%=Url.Content("~/Scripts/jquery.magnific-popup.min.js")%>"></script>
    <link rel="stylesheet" href="<%=Url.Content("~/Content/magnific-popup.css")%>">
</head>
<body>
    <%if (Model.SubKAImage != null)
      {%>
    <div class="gallery">
        <%foreach (var i in Model.SubKAImage)
          { %>
        <a href="<%=Url.Action("GetPrdDisplayImage","KAPrdDisplay",new{identity = i.ImageID,area="FMCGClient"})%>">
            <img src="<%=Url.Action("GetPrdDisplayImage","KAPrdDisplay",new{identity = i.ImageID,area="FMCGClient"}) %>"
                height="200px" height="200px" /></a>
        <%}%>
    </div>
    <%}
      else
      {%>
    暂无信息
    <%} %>
    <%if (Model.CheckIn != null)
      { %>
    <div>
        <%foreach (var c in Model.CheckIn)
          { %>
        签到时间:<%=c.CreateTime %>
        陈列码:<%=c.SubKACode %>
        <%} %>
    </div>
    <%} %>
    <script type="text/javascript">
        $('.gallery').each(function () { // the containers for all your galleries
            $(this).magnificPopup({
                delegate: 'a', // the selector for gallery item
                type: 'image',
                gallery: {
                    enabled: true
                }
            });
        }); 
    </script>
</body>
</html>
